package com.xhwl.logistics.dto.http.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QueryCommonCheAnDTO<T> {

    private String from;

    private String timestamp;

    private String nonce;

    private String sign;

    private String branchno;

    private T data;

    private QueryPageCheAnDTO queryFormat;

    public static <T> QueryCommonCheAnDTO<T> getInstance(T data) {
        QueryCommonCheAnDTO<T> queryCommonCheAnDTO = new QueryCommonCheAnDTO<>();
        queryCommonCheAnDTO.setData(data);
        queryCommonCheAnDTO.setQueryFormat(new QueryPageCheAnDTO());
        return queryCommonCheAnDTO;
    }

}
